#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<string.h>
#include<unistd.h>

const char* FILENAME = "text.txt";

int main(){
  umask(0000);
  int fd = open(FILENAME,O_WRONLY | O_CREAT,0666);
  const char* buff = "hello claus 111";
  write(fd,buff,strlen(buff)-1);
  close(fd);
  
  return 0;
}
